import request from '@/utils/request'

// 查询乡镇设施农用地信息列表
export function listAgriculture(query) {
  return request({
    url: '/town/agriculture/list',
    method: 'get',
    params: query
  })
}

// 查询乡镇设施农用地信息详细
export function getAgriculture(id) {
  return request({
    url: '/town/agriculture/' + id,
    method: 'get'
  })
}

// 新增乡镇设施农用地信息
export function addAgriculture(data) {
  return request({
    url: '/town/agriculture',
    method: 'post',
    data: data
  })
}

// 修改乡镇设施农用地信息
export function updateAgriculture(data) {
  return request({
    url: '/town/agriculture',
    method: 'put',
    data: data
  })
}

// 删除乡镇设施农用地信息
export function delAgriculture(id) {
  return request({
    url: '/town/agriculture/' + id,
    method: 'delete'
  })
}
